/// id : "1663008586413072403"
/// isDel : 0
/// name : "酒店住宿"
/// code : "JDZS"
/// icon : "bdjw/shop_jdzc.png"
/// sort : 2

class ShopCategory {
  ShopCategory({
      String? id, 
      num? isDel, 
      String? name, 
      String? code, 
      String? icon, 
      num? sort,}){
    _id = id;
    _isDel = isDel;
    _name = name;
    _code = code;
    _icon = icon;
    _sort = sort;
}

  ShopCategory.fromJson(dynamic json) {
    _id = json['id'];
    _isDel = json['isDel'];
    _name = json['name'];
    _code = json['code'];
    _icon = json['icon'];
    _sort = json['sort'];
  }
  String? _id;
  num? _isDel;
  String? _name;
  String? _code;
  String? _icon;
  num? _sort;
ShopCategory copyWith({  String? id,
  num? isDel,
  String? name,
  String? code,
  String? icon,
  num? sort,
}) => ShopCategory(  id: id ?? _id,
  isDel: isDel ?? _isDel,
  name: name ?? _name,
  code: code ?? _code,
  icon: icon ?? _icon,
  sort: sort ?? _sort,
);
  String? get id => _id;
  num? get isDel => _isDel;
  String? get name => _name;
  String? get code => _code;
  String? get icon => _icon;
  num? get sort => _sort;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = _id;
    map['isDel'] = _isDel;
    map['name'] = _name;
    map['code'] = _code;
    map['icon'] = _icon;
    map['sort'] = _sort;
    return map;
  }

}